<template>
    <div>
        
    </div>
</template>

<script>
import axios from 'axios';
export default {
    

    data() {
        return {
          list:[]  
        };
    },

    mounted() {
        this.getList()
    },

    methods: {
        getList(){
            axios.get('/list').then(res=>{
                //调用仓库的同步数据
                this.$store.commit('setList',res.data)
            })
        }
        
    },
};
</script>

<style lang="scss" scoped>

</style>